package com.reins.bookstore.object;
import lombok.Data;

import java.sql.Date;
import java.util.List;

@Data
public class Filter {
    private Integer userId;
    private Date frontDate;
    private Date backDate;
    private Integer pages = 1;
    // 一个页面的容量默认为10
    private Integer capacity = 10;

    private Integer frontId;
    private Integer endId;
    public Filter(Integer userId, Date frontDate, Date backDate,Integer pages){
        this.userId = userId;
        this.frontDate = frontDate;
        this.backDate = backDate;
        this.pages = pages;
    }

    public Integer getPages() { return pages; }

    public Integer getUserId() { return userId; }

    public Date getBackDate() {
        return backDate;
    }

    public Date getFrontDate() {
        return frontDate;
    }

    public Integer getCapacity() {
        return capacity;
    }
}
